package com.wanxi.coupon.api.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * ClassName: CouponStatistic
 * Description: 统计实体
 * date: 2022/1/7 9:57
 *
 * @author lxl
 * @version 1.0
 * @since JDK 1.8
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("优惠券统计实体信息")
public class CouponStatistic {

    @ApiModelProperty(value = "优惠券id",example = "1")
    private Long id;
    @ApiModelProperty(value = "商家id" )
    private Long enterpriseId;
    @ApiModelProperty(value = "优惠券类型",example = "满减")
    private Integer type; //类型
    @ApiModelProperty(value = "面额10 满xxx减10或者十元代金券",example = "10")
    private BigDecimal couponMoney; //面额
    @ApiModelProperty(value = "满100减xxx",example = "100")
    private BigDecimal fullReduction; //满减
    @ApiModelProperty(value = "折扣",example = "95 ")
    private BigDecimal discount; //折扣
    @ApiModelProperty(value = "发放总量",example = "195 ")
    private Integer quota; //发放总量
    //    0表示已过期 1表示正常   2已使用
    @ApiModelProperty(value = "用户优惠券状态 ",example = "使用中 ")
    private Integer userCouponStatus;
    @ApiModelProperty(value = "优惠券状态 ",example = "使用中 ")
    private Integer status;
    @ApiModelProperty(value = "已领取数量")
    private Integer getNumber;
    @ApiModelProperty(value = "已使用数量")
    private Integer useNumber;
    private Integer page;
    private Integer pageSize;
}
